/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.heyma.webapp.srv;

import org.heyma.webapp.dao.Dao;
import org.heyma.webapp.model.Persona;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author John
 */
@Service
public class PersonaImpl implements IPersonaSrv {

    @Autowired
    Dao dao;

    @Override
    @Transactional
    public void guardarPersona(Persona persona) {
        dao.save(persona);
    }
}
